import { dateAdd } from '../utils/time.js'
export default [
  {
    label: "姓名",
    name: "name",
    type: "Text",
    mode: "text",
    required: true,
    placeholder: "请输入姓名"
  },
  {
    label: "生日",
    name: "birthday",
    type: "Date",
    required: true,
    mode: "date",
    placeholder: "请选择生日",
    defaultValue: new Date(dateAdd(new Date(),'Y',-30)),
    minDate: new Date(dateAdd(new Date(),'Y',-60)),
    maxDate: new Date()
  },
  {
    label: "预产期",
    name: "expectChildBirth",
    type: "Date",
    required: true,
    mode: "date",
    placeholder: "请选择预产期",
    defaultValue: new Date(),
    minDate: new Date(dateAdd(new Date(),'D',-280)),
    maxDate: new Date(dateAdd(new Date(),'D',280))
  },
  {
    label: "身高",
    name: "height",
    type: "Picker",
    required: true,
    placeholder: "请选择身高",
    minNum:'140.0',
    maxNum:'220.9',
    defaultValue:'160.0',
    unit:'cm'
  },
  {
    label: "孕前体重",
    name: "weight",
    type: "Picker",
    required: true,
    placeholder: "请选择体重",
    minNum:'40.9',
    maxNum:'150.9',
    defaultValue:'60.0',
    unit:'kg'
  },
];
